package com.alit.face.koala.controller.event;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.alit.face.koala.app.data.AppResponse;
import com.alit.face.koala.service.event.EventService;

@RestController
@RequestMapping("event")
public class EventController {

  @Autowired
  private EventService eventService;
  @RequestMapping("constants")
  public AppResponse constants(String category){
    return eventService.constants(category);
  }
  
  @RequestMapping("events")
  public AppResponse events(String category){
    return eventService.events(category);
  }
  
}
